package com.guigu.www.cxk.controller;

import com.guigu.www.cxk.service.CXKMindTestService;
import com.guigu.www.pojo.ConstitutionTest;
import com.guigu.www.pojo.MindTest;
import com.guigu.www.pojo.RiskTest;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

@Controller
@RequestMapping("/mindtest")
public class CXKMindTestController {

    @Autowired
    CXKMindTestService service;

    /*查看体检*/
    @PostMapping("selectbaogao/{sid}")
    @ResponseBody
    public ConstitutionTest selectbaogao(@PathVariable int sid) {
        return service.selectCon(sid);
    }

    @PostMapping("selectxinlibaogao/{sid}")
    @ResponseBody
    public MindTest selectxinlibaogao(@PathVariable int sid){
        return service.selectMind(sid);
    }

    @PostMapping("selectfengxianbaogao/{sid}")
    @ResponseBody
    public RiskTest selectfengxianbaogao(@PathVariable int sid){
       return service.selectRisk(sid);
    }
}
